




/*
*************************************************************************
*西瑞克斯研发管理系统
*版 本: 1.0   
*日 期：02/15/2012    
*作 者： 王浩 QQ：873987060   
*************************************************************************   
*/ 
package com.application.yfprojectpilot.service;
import java.util.List;
import com.manager.BaseService;
import com.manager.commons.page.PageBean;
import com.application.yfprojectpilot.entity.YfProjectPilot;
import com.application.yfprojectpilot.struts.form.YfProjectPilotForm;
import com.application.yfprojectpilot.dao.YfProjectPilotDAO;
 /**
 * 
 * Description:YfProjectPilotService<br />
 * 
 * Version:V0.1<br />
 * 
 * Author: 王浩 QQ：873987060  <br />
 * 
 * History: <br />
 * 
 * 02/15/2012 
 * 
 */
public class YfProjectPilotService extends BaseService
{
	private YfProjectPilotDAO yfProjectPilotDAO;

	public YfProjectPilotDAO getYfProjectPilotDAO() {
		return this.yfProjectPilotDAO;
	}

	public void setYfProjectPilotDAO(YfProjectPilotDAO yfProjectPilotDAO) {
		this.yfProjectPilotDAO = yfProjectPilotDAO;
	}
        

        public YfProjectPilot getYfProjectPilot(YfProjectPilot yfProjectPilot) {
		return (YfProjectPilot) this.getBaseDao().queryByPk(yfProjectPilot, yfProjectPilot.getId());
	}
	
	public Integer getAllCountYfProjectPilot(YfProjectPilotForm yfProjectPilotForm){
		return this.yfProjectPilotDAO.getAllCountYfProjectPilot(yfProjectPilotForm);
	}
	
	public List<YfProjectPilot> searchYfProjectPilot(YfProjectPilotForm yfProjectPilotForm, PageBean pageBean) throws Exception {
		List<YfProjectPilot> yfProjectPilotList = (List) this.yfProjectPilotDAO.searchYfProjectPilot(yfProjectPilotForm, pageBean);
		return yfProjectPilotList;
	}
        
        public void deleteYfProjectPilots(YfProjectPilotForm yfProjectPilotForm){
	   this.yfProjectPilotDAO.deleteYfProjectPilots(yfProjectPilotForm);	 
	}
}
